var map = new BMapGL.Map('container');
var point = new BMapGL.Point(106.529655, 29.60753);
map.centerAndZoom(point, 15);

var marker = new BMapGL.Marker(point);
map.addOverlay(marker);

var opts = {
    width: 200,
    height: 100,
    title: "北城阳光尚线",
    message: "这里是我家"
}
var infoWindow = new BMapGL.InfoWindow("地址：重庆市渝北区.阳光尚线(星辰路西100米)", opts);  // 创建信息窗口对象 
marker.addEventListener("click", function () {
    map.openInfoWindow(infoWindow, point);
});